<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

require_once(dirname(__FILE__) . '/MY_Model.php');
Class Contacts_m extends MY_Model
{
    function __construct() {
        parent::__construct();
        $this->_table = 'contacts';
    }
    
    public function getAll() {
        $this->db->select('prd.*');
        $this->db->from('contacts as prd');
        $result = $this->db->get()->result();
        return $result;
    }
}
?>